home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3926 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.0 KB  |  29 lines

  1. Path: news.th-darmstadt.de!news!enno
  2. From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Template delaration problem
  5. Date: 26 Jan 1996 19:13:29 GMT
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Distribution: world
  8. Message-ID: <ENNO.96Jan26201329@kitz.inferenzsysteme.informatik.th-darmstadt.de>
  9. References: <4e8c1i$mpp@phoenix.dse.beckman.com>
  10. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  11. In-reply-to: jawalker@ccgate.dp.beckman.com's message of Thu, 25 Jan 1996 17:30:40 GMT
  12.  
  13. In article <4e8c1i$mpp@phoenix.dse.beckman.com> jawalker@ccgate.dp.beckman.com (Jack Walker) writes:
  14.  
  15.    My compiler (BC++ 4.52) complains about the following declaration:
  16.  
  17.    template < class T, T init_val>
  18.    class foo
  19.    { . . . };
  20.  
  21.    Specifically it complains about the line cntaining the template
  22.    keyword regarding the type of init_val. Is it valid to define template
  23.    arguments in terms of other template arguments?
  24.  
  25. Yes, but it's a new feature that isn't supported by most?any compiler(s).
  26.  
  27.         Enno
  28.  
  29.